#ifndef SNAKE_H
#define SNAKE_H

#include <QWidget>
#include<QVector>

class snake : public QWidget
{
    Q_OBJECT
private:
public:
    struct snakexy
    {
        int x;
        int y;
    };
    explicit snake(QWidget *parent = nullptr);
    QVector<snakexy>snakevec;
    void move(char key);
    void dirmove(char key,snakexy&nexthead);
    void reset();
signals:

};

#endif // SNAKE_H
